<?php
$connect = mysql_connect("localhost","root","");
$selectSQL = mysql_select_db("new");
mysql_query("set names utf8");

$user = $_POST['name'];

$sql = "SELECT * FROM wangLove WHERE name = $user";
$result = mysql_query($sql);
$arr = array();
while($row = mysql_fetch_assoc($result)){
	array_push($arr, $row);
}

echo json_encode($arr)



?>